import request from "@/utils/request";

// 查询banner子项列表
export function listItem(query) {
  return request({
    url: "/kjy/BannerItem/list",
    method: "get",
    params: query,
  });
}

// 查询banner子项详细
export function getItem(id) {
  return request({
    url: "/kjy/BannerItem/" + id,
    method: "get",
  });
}

// 新增banner子项
export function addItem(data) {
  return request({
    url: "/kjy/BannerItem",
    method: "post",
    data: data,
  });
}

// 修改banner子项
export function updateItem(data) {
  return request({
    url: "/kjy/BannerItem",
    method: "put",
    data: data,
  });
}

// 删除banner子项
export function delItem(id) {
  return request({
    url: "/kjy/BannerItem/" + id,
    method: "delete",
  });
}
